Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. mac address
    Log in to post

    • H

      Access LoPy mac address without using atom.
      LoPy • lopy serial mac address • • HobbyPy  

      4
      0
      Votes
      4
      Posts
      528
      Views

      P

      @hobbypy any programming language with a serial library should work. simply open a serial connect to the board via your preffered language / framework. and send the code as a string over it. The response will come back over serial just like the REPL does.
    • A

      Finding own MAC address.
      SiPy • bluetooth sypy mac address • • alidaf  

      2
      1
      Votes
      2
      Posts
      897
      Views

      A

      Hi, have you find out how to discover Bluetooth Mac address? i cannot find this information nowhere. machine.unique_id and network.WLAN().mac() commands give the same mac address but if you put the device in ble advertising mode and scan the traffic with an Android app, you can see it is different from the previous ones.
    • S

      WLAN.mac() & machine.unique_id() is not accurately reporting the unit wifi mac address
      Issues & Bugs • wlan wifi mac address machine.unique wlan.mac • • Strevens  

      4
      0
      Votes
      4
      Posts
      1762
      Views

      S

      @jmarcelino ok, thanks. The Lopy was in AP mode. I will give it a try in STA mode. Cheers Mark
    • T

      Mac address format to hexadecimal
      MicroPython • lora lopy lora mode mac address bytes • • timeb  

      4
      0
      Votes
      4
      Posts
      2333
      Views

      robert-hh

      @timeb The data returned by lora.mac() is a 8 byte binary quantity in a bytes object. These bytes may not be printable chars. And it is also not an integer, and can therefore not be printed with the %x specifier. If you want to print it in a ASCII-Hex representation, you have to convert that with ubinascii.hexlify, like you did, and print it with the %s specifier. The results is a string. How you further proceed with the data, is up to you. You could use the binary object or the string.
    • 1 / 1